import { ref } from 'vue'
import { defineStore } from 'pinia'

// 用户信息 
export const useUserStore = defineStore('user', () => {
    const uid = ref('lingong')
    const name = ref('林恭')
    function setUser(uid, name) {
        uid.value = uid
        name.value = name
    }
    return { uid, name, setUser }
})